package com.example.mobile_EnumMoudle;

public enum OwnCtlType {
    None(0),
    TextBox(1),
    ComboBox(2),
    GridViewCell(3),
    CheckBox(4);
	private int value;

	private OwnCtlType(int value) {
		this.value = value;
	}

	public int getValue() {
		return value;
	}

	public static OwnCtlType getEnumFromString(String string) {
		if (string != null) {
			return Enum.valueOf(OwnCtlType.class, string.trim());
		}
		return null;
	}
}
